package com.comdosoft.comdoandroidbase.util;

import com.comdosoft.comdoandroidbase.fragment.DialogFragment;
import com.comdosoft.comdoandroidbase.fragment.ImageFragment;
import com.comdosoft.comdoandroidbase.fragment.PullToRreshFragment;
import com.comdosoft.comdoandroidbase.fragment.SwipeMenuListViewFragment;
import com.comdosoft.comdoandroidbase.fragment.UpDateFragment;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created by yewei on 2015/9/16.
 */
public class DataUtil {

    public static final String MENU_KEY_GROUP_NAME = "menu_key_group_name";

    public static final String MENU_KEY_ITEM_NAME = "menu_key_item_name";

    public static final String MENU_KEY_FRAGMENT = "menu_key_fragment";

    public static List<HashMap<String, Object>> getDataList() {

        List<HashMap<String, Object>> menulist = new ArrayList<HashMap<String, Object>>();

        HashMap<String, Object> hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "图片拍照、选择图片，图片压缩，图片加载");
        hashmap.put(MENU_KEY_FRAGMENT, new ImageFragment());
        menulist.add(hashmap);

        hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "常用dialog");
        hashmap.put(MENU_KEY_FRAGMENT, new DialogFragment());
        menulist.add(hashmap);

        hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "上下拉");
        hashmap.put(MENU_KEY_FRAGMENT, new PullToRreshFragment());
        menulist.add(hashmap);

        hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "左滑删除");
        hashmap.put(MENU_KEY_FRAGMENT, new SwipeMenuListViewFragment());
        menulist.add(hashmap);

        hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "左滑删除");
        hashmap.put(MENU_KEY_FRAGMENT, new SwipeMenuListViewFragment());
        menulist.add(hashmap);

        hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "百度地图附近列表");
        menulist.add(hashmap);

        hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "相册");
        menulist.add(hashmap);

        hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "扫描二维码");
        menulist.add(hashmap);

        hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "上下拉刷新");
        menulist.add(hashmap);


        hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "日历备注");
        menulist.add(hashmap);

        hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "版本更新");
        hashmap.put(MENU_KEY_FRAGMENT, new UpDateFragment());
        menulist.add(hashmap);

        hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "日期选择");
        menulist.add(hashmap);

        hashmap = new HashMap<String, Object>();
        hashmap.put(MENU_KEY_ITEM_NAME, "日期时间选择");
        menulist.add(hashmap);

        return menulist;

    }

}
